package com.mingqijia.gassafety.db.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.mingqijia.gassafety.db.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 字典项
 * </p>
 *
 * @author zhangfei
 * @since 2022-02-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_gss_dictionary")
@ApiModel(value="Dictionary对象", description="字典项")
public class Dictionary extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "唯一标识")
      @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @ApiModelProperty(value = "字典标识")
    @TableField("dict_code")
    private String dictCode;

    @ApiModelProperty(value = "显示名称")
    @TableField("alias")
    private String alias;

    @ApiModelProperty(value = "字典项取值")
    @TableField("value")
    private String value;

    @ApiModelProperty(value = "描述")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "排序值")
    @TableField("ordinal")
    private Integer ordinal;

    @ApiModelProperty(value = "创建时间，秒")
    @TableField("created_by")
    private String createdBy;

    @ApiModelProperty(value = "更新时间，秒")
    @TableField("updated_by")
    private String updatedBy;

    @ApiModelProperty(value = "燃气公司名称")
    @TableField("company_name")
    private String companyName;

    @ApiModelProperty(value = "预留字段2")
    @TableField("ext2")
    private String ext2;
}
